package com.cfpamf.athean.rabbit.mq.plus.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cfpamf.athean.rabbit.mq.plus.domain.po.RabbitMqPlusEventTaskPO;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Andy（陈洪桥）
 * @since 2022-11-26 15:15:40
 */
public interface RabbitMqPlusEventTaskMapper extends BaseMapper<RabbitMqPlusEventTaskPO> {

    @Delete("DELETE FROM rabbit_mq_plus_event_task ${ew.customSqlSegment} limit 5000")
    int deleteByLimit5000(@Param(Constants.WRAPPER) Wrapper<RabbitMqPlusEventTaskPO> wrapper);

}
